package Program;

import simulator.labyrinth.Square;

public class FinishSquare implements Condition<Square> {

	private static final FinishSquare instance = new FinishSquare();
	
	public static FinishSquare getInstance() {
		return instance;
	}
	
	private FinishSquare() {
			
	}
	
	@Override
	public boolean satisfiesCondition(Square toCheck) {
		return toCheck != null && toCheck.isFinish();
	}
	
}